package cc.verywell.pureblock.msg.nfs.idx;

import cc.verywell.pureblock.func.node.KeyShell;

/**
* 
* Copyright © 2019 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2019年10月2日 下午12:57:01
*/
public interface NfsidxMain {
	static public final byte ERR = 1;
	static public final byte ADD_OK = 2;
	static public final byte ADD_EXISTS = 3;
	static public final byte ADD_NOTSAME = 4;
	static public final byte REMOVE_OK = 2;
	static public final byte REMOVE_NOTSAME = 3;
	
	byte addIndex(KeyShell key, NfsidxStructure idx);
	byte replaceIndex(KeyShell key, NfsidxStructure oldidx, NfsidxStructure newidx);
	byte removeIndex(KeyShell key, NfsidxStructure idx);
	NfsidxStructure getIndex(KeyShell key);
}
